{template admin_improt}
<script type="text/javascript">
function submits()
{
	var name = document.getElementById('name').value;
	var url = document.getElementById('url').value;
	var is_ok = document.getElementById('is_ok').value;
	if(name=='' || url=='' || is_ok=='')
	{
		alert("请填写具体项");return false;
	}
}
</script>
<div class="mainStyle">
	<div class="mainTitle">
		<span class="mainTitle_text">
			<a href='?p=footer'>底部管理</a>
		</span>
	</div>
<form id="form2" name="form2" method="post" action="?p=footer&a=footer_save" onsubmit="return submit_stair();">
<div>添加一级分类</div>
<table width="58%" border="1" bordercolor="#999999">
    <tr>
      <td height="36" align="center" valign="middle">一级类：</td>
      <td height="36" align="left" valign="middle"><label>
        <input type="text" name="stair_name" id='stair_name'/>
      显示的名称</label></td>
    </tr>
    <tr>
      <td height="45" align="center" valign="middle">连接地址：</td>
      <td height="45" align="left" valign="middle"><label>
        <input type="text" name="stair_url" id='stair_url' />
      </label>
      以http://开头</td>
    </tr>
    <tr>
      <td height="49" align="center" valign="middle">是否有效：</td>
      <td height="49" align="left" valign="middle"><label>
        有效
        <input type="radio" name="stair_is_ok" id='stair_is_ok' value="1" />
      </label>
        | 无效
        <label>
        <input type="radio" name="stair_is_ok" id='stair_is_ok' value="2" />
        </label></td>
    </tr>
    <tr>
      <td height="39" colspan="2" align="center" valign="middle"><label>
	  <input type='hidden' name='types' value='stair'/>
        <input type="submit" name="Submit" value="提 交" />
      </label></td>
    </tr>
  </table>
</form>
<div>添加二级分类</div>
<form id="form1" name="form1" method="post" action="?p=footer&a=footer_save" onsubmit="return submits();">


  <table width="58%" border="1" bordercolor="#999999">
    <tr>
      <td width="27%" height="36" align="center" valign="middle">一级类：</td>
      <td width="73%" align="left" valign="middle"><label>
        <select name="parent_id">
		{loop $one $nl}
		<option value="{$nl['id']}">{$nl['name']}</option>
		{/loop}
        </select>
      </label></td>
    </tr>
    <tr>
      <td height="36" align="center" valign="middle">二级类：</td>
      <td height="36" align="left" valign="middle"><label>
        <input type="text" name="name" id='name'/>
      显示的名称</label></td>
    </tr>
    <tr>
      <td height="45" align="center" valign="middle">连接地址：</td>
      <td height="45" align="left" valign="middle"><label>
        <input type="text" name="url" id='url' />
      </label>
      以http://开头</td>
    </tr>
    <tr>
      <td height="49" align="center" valign="middle">是否有效：</td>
      <td height="49" align="left" valign="middle"><label>
        有效
        <input type="radio" name="is_ok" id='is_ok' value="1" />
      </label>
        | 无效
        <label>
        <input type="radio" name="is_ok" id='is_ok' value="2" />
        </label></td>
    </tr>
    <tr>
      <td height="39" colspan="2" align="center" valign="middle"><label>
	   <input type='hidden' name='types' value='sec'/>
        <input type="submit" name="Submit" value="提 交" />
      </label></td>
    </tr>
  </table>
</form>


	
</div>
{template admin_bottom}